Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p id="demo"></p> <script> var x = 5; // Declare x, give it the value of 5 var y = x + 2; // Declare y, give it the value of x + 2 document.getElementById("demo").innerHTML = y; // Write y to demo </script> <p><strong>Note:</strong> The comments are not executed.</p> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_comments5 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:24:02 GMT --> </html>
Result:
Try it Yourself - © w3schools.com